// import {inputMixin} from 'lib/mixins'
export default {
  render(h) {
    let option = this.option
    return (
      <elRadioGroup value={option.value} onInput={(val) => {
        option.value = val
      }}>
        {
          option.options.map((item) => {
            return <elRadio disabled={item.disabled} label={item.value} >{item.label}</elRadio>
          })
        }
      </elRadioGroup>
    )
  },
  methods: {
    input(value) {
      // console.log(value,'----value')
      this.option.value = value;
    }
  },
  props: ['option'],
  // mixins: [inputMixin],
  name: 'vRadio'
}
